Micron Document




Comment (computer programming)
part 23/37 · 66.0 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
In some variants of SQL, the curly brace language block comment (/**/) is supported. Variants include: Transact-SQL, MySQL, SQLite, PostgreSQL, and Oracle.cite-ref-mssql-47-0[47]cite-ref-mysql-48-0[48]cite-ref-sqlite-49-0[49]cite-ref-postgresql-50-0[50]cite-ref-oracle-51-0[51]

MySQL also supports a line comment delimited by #.

Less common syntax

APL

APL uses ("lamp") for a line comment. For example:

⍝ Now add the numbers:
c←a+b ⍝ addition

In dialects that have the ("left") and ("right") primitives, comments can often be inside or separate statements, in the form of ignored strings:

d←2×c ⊣'where'⊢ c←a+ 'bound'⊢ b

AppleScript

AppleScript supports both line and block comments. For example:

# line comment (in later versions)
(*
This program displays a greeting.
*)
on greet(myGreeting)
display dialog myGreeting & " world!"
end greet
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────